package Features.RatFeild
{
	public class Scheduler
	{
		private var baseSpeed:Number	=	0.15;
		private var varX:Number			=	1;
		
		public function Scheduler()
		{
		}
		
		public function updateTime( deltaTime:Number ):void
		{
			varX	+=	deltaTime;
		}
		
		public function getScheduleTime():Number
		{
			var varY:Number	=	calcVarY();
			return varY * baseSpeed;
		}
		
		private function calcVarY():Number
		{
			var logX:Number	=	Math.log( varX ) / Math.log( 10.0 );
			var ePow:Number	=	Math.pow( Math.E, logX );
			return 10.0 - ePow;
		}
	}
}